<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="c" 	 uri="http://java.sun.com/jsp/jstl/core"%>

<%@include file="/jsp/backoffice/include/header.jsp" %>

<div class="panelblock">
	<h2><bean:message bundle="backoffice" key="page.edit.category.title"/></h2>
	<html:form action="/backoffice/editCategory.do">
		<div class="form">
			<html:hidden property="id" />
			<div class="ligne_frm ">
				<label><bean:message bundle="backoffice" key="page.edit.category.form.name"/></label>
				<br/><html:text property="name" size="50" maxlength="75"/>
			</div>
			<div class="ligne_frm">
				<label><bean:message bundle="backoffice" key="page.edit.category.form.parent"/></label>
				<br/>
				<html:select property="parent">
					<html:option value="0">--</html:option>
					<c:forEach items="${categories}" var="c">
						<html:option value="${c.id}"><c:out value="${c.name}"/></html:option>
					</c:forEach>
				</html:select>
			</div>
			<div class="ligne_frm">
				<label><bean:message bundle="backoffice" key="page.edit.category.form.description"/></label>
				<br/><html:textarea property="description" cols="100" rows="5" styleClass="textarea" />
			</div>
			
			<div class="ligne_frm">
				<input type="submit" name="btnValidate" value="<bean:message bundle="backoffice" key="page.edit.category.form.button.save"/>"/>
			</div>
		</div>
	
	</html:form>
</div>
		
<%@include file="/jsp/backoffice/include/footer.jsp" %>